/* stylelint-disable selector-class-pattern */
@include b(login-view) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);

  --el-color-primary: #409eff;

  .el-input {
    --el-input-text-color: #606266;
    --el-input-border-color: #dcdfe6;
    --el-input-hover-border-color: #c0c4cc;
    --el-input-icon-color: #a8abb2;
  }

  .el-button--primary {
    --el-button-text-color: var(--el-color-white);
    --el-button-bg-color: var(--el-color-primary);
    --el-button-border-color: var(--el-color-primary);
    --el-button-outline-color: var(--el-color-primary-light-5);
    --el-button-active-color: var(--el-color-primary-dark-2);
    --el-button-hover-text-color: var(--el-color-white);
    --el-button-hover-link-text-color: var(--el-color-primary-light-5);
    --el-button-hover-bg-color: var(--el-color-primary-light-3);
    --el-button-hover-border-color: var(--el-color-primary-light-3);
    --el-button-active-bg-color: var(--el-color-primary-dark-2);
    --el-button-active-border-color: var(--el-color-primary-dark-2);
    --el-button-disabled-text-color: var(--el-color-white);
    --el-button-disabled-bg-color: var(--el-color-primary-light-5);
    --el-button-disabled-border-color: var(--el-color-primary-light-5);
  }
}


@include b(login-view-box) {
  width: 430px;
  margin-bottom: 80px;
  overflow: hidden;
  background: #fff;
}

/* stylelint-disable-next-line media-feature-range-notation */
@media screen and (max-width: 720px) {
  @include b(login-view-box) {
    width: 340px;
    margin-top: 0;
  }
}

@include b(login-view-box-header) {
  position: relative;
  background: #ccf;

  > img {
    display: block;
    width: 430px;
    margin: 0 auto;
    user-select: none;
  }

  @include b(login-view-box-header-title){
    position: absolute;
    top: 28%;
    left: 50%;
    font-size: getCssVar(font-size, header-2);
    font-weight: getCssVar(font-weight, bold);
    color: rgb(getCssVar(white));
    text-shadow: 0 2px 6px rgb(0 0 0 / 54%);
    white-space: nowrap;
    transform: translateX(-50%);
  }
}

@include b(login-view-box-main) {
  position: relative;

  @include e(avatar) {
    position: absolute;
    top: -50px;
    right: calc(50% - 50px);
    z-index: 2;
    display: block;
    width: 100px;
    height: 100px;
    user-select: none;
    border: 4px solid #fff;
    border-radius: 50%;
  }
}

@include b(login-view-box-main-content) {
  padding: 100px 40px 40px;

  // 浏览器自动填写之后的输入框的背景色和文字颜色
  .el-input__inner:-webkit-autofill{
    box-shadow:0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #606266;
  }

  .el-button {
    width: 100%;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 2px;
  }

  .el-input__prefix{
    width: 20px;
    margin-left: -1px;
  }

  ion-icon {
    font-size: 16px;
  }
}
